<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <input type="file" onchange="upload()">
  <div></div>
  <script>
    function upload () {
      var ipt_file = document.querySelector('input').files[0]
      var imgSrc = URL.createObjectURL(ipt_file)

      var img = document.createElement('img')
      img.src = imgSrc
      img.width='200'
      document.querySelector('div').appendChild(img)
    }
  </script>
</body>
</html>